package com.common.vo.infect;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class TrackVO {


        private Long track_id;

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        private Date create_time;

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        private Date modified_time;

        @NotNull(message = "轨迹经度不能为空")
        private Double lng;

        @NotNull(message = "轨迹纬度不能为空")
        private Double lat;

        @NotNull(message = "用户id不能为空")
        private Long user_id;

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        private Date track_time;
}
